home *** CD-ROM | disk | FTP | other *** search
/ Merciful 2 / Merciful - Disc 2.iso / software / p / peggerv2.06.dms / peggerv2.06.adf / Install PEGGER < prev    next >
Text File  |  1994-08-29  |  5KB  |  228 lines

  1. ; Install PEGGER 
  2.  
  3. (set @default-dest "T:")
  4.  
  5. (transcript "Installing PEGGER Libraries")
  6. (working "Installing PEGGER Libraries" )
  7.  
  8. (copylib
  9.     (transcript "copylib")
  10.     (prompt "Installing the pegger.library.")
  11.     (help @copylib-help)
  12.     (source "Pegger:Libs/pegger.library")
  13.     (dest "LIBS:")
  14.     (confirm)
  15. )
  16.  
  17. (copylib
  18.     (transcript "copylib")
  19.     (prompt "Installing the peggersnoop.library.")
  20.     (help @copylib-help)
  21.     (source "Pegger:Libs/peggersnoop.library")
  22.     (dest "LIBS:")
  23.     (confirm)
  24. )
  25.  
  26. (copylib
  27.     (transcript "copylib")
  28.     (prompt "Installing the dctv.library.")
  29.     (help @copylib-help)
  30.     (source "Pegger:Libs/dctv.library")
  31.     (dest "LIBS:")
  32.     (confirm)
  33. )
  34.  
  35. (transcript "Getting Location of PEGGER Directory")
  36.  
  37. (set pegger_dir "Work:")
  38.  
  39. (if (NOT (exists pegger_dir (noreq)))
  40.     (set pegger_dir "Sys:")
  41. )
  42.  
  43. (set pegger_dir
  44.     (askdir
  45.         (prompt
  46.         "PEGGER requires 800K of free space on your disk. "
  47.         "Where would you like PEGGER's directory installed?")
  48.         (help @askdir-help)
  49.         (default pegger_dir)
  50.     )
  51. )
  52.  
  53. (if (NOT (exists (tackon pegger_dir "PEGGER")(noreq)))
  54.     (
  55.     (copyfiles
  56.         (source "Pegger:PEGGER.info")
  57.         (dest pegger_dir))
  58.     (tooltype
  59.         (dest (tackon pegger_dir "PEGGER"))
  60.         (noposition))
  61.     (makedir (tackon pegger_dir "PEGGER"))
  62.     )
  63. )
  64.  
  65. (set pegger_dir (tackon pegger_dir "PEGGER"))
  66.  
  67. (set @default-dest pegger_dir)
  68.  
  69. (transcript "Installing PEGGER Program")
  70.  
  71. (copyfiles
  72.     (prompt "Installing PEGGER program.")
  73.     (help @copyfiles-help)
  74.     (source "Pegger:PEGGER/PEGGER")
  75.     (infos)
  76.     (dest pegger_dir)
  77. )
  78.  
  79. (transcript "Installing PEGGER ReadMe Files")
  80. (copyfiles
  81.     (prompt "Installing Pegger ReadMe Files.")
  82.     (help @copyfiles-help)
  83.     (source "Pegger:Pegger/PEGGERChanges")
  84.     (infos)
  85.     (dest pegger_dir)
  86. )
  87.  
  88. (transcript "Installing PEGGER data files.")
  89.  
  90. (working "Installing PEGGER Data Files" )
  91.  
  92. (set dataok
  93.     (run (cat "Pegger:c/PeggerCreate " (cat "\"" pegger_dir "\"")) )
  94. )
  95.  
  96. (if (= dataok 0)
  97.     ((set dataok
  98.         (askbool
  99.             (prompt "Could not install all of PEGGER's data files."
  100.             " Proceed with PEGGER installation?")
  101.             (help)
  102.             (choices "Proceed" "Cancel")
  103.         )
  104.     )
  105.     (if (= dataok 1)
  106.         (transcript "PEGGER Installation Aborted")
  107.         (exit "PEGGER Installation Aborted")
  108.     ))
  109. )
  110.  
  111. (set installfiles
  112.     (askoptions
  113.         (prompt "Which of the following optional directorys should be installed in the PEGGER Directory?")
  114.         (help @askoptions-help)
  115.         (choices "TutorialFiles" "Rexx")
  116.         (default 3)
  117.     )
  118. )
  119.  
  120. (if (BITAND installfiles 2)
  121.     (
  122.     (transcript "Installing PEGGER ARexx scripts.")
  123.  
  124.     (if (NOT (exists (tackon pegger_dir "Rexx") (noreq)))
  125.         (
  126.         (copyfiles
  127.             (source "Pegger:Pegger/Rexx.info")
  128.             (dest pegger_dir))
  129.         (makedir (tackon pegger_dir "Rexx"))
  130.         )
  131.     )
  132.  
  133.     (copyfiles
  134.         (prompt "Installing PEGGER ARexx scripts.")
  135.         (help @copyfiles-help)
  136.         (source "Pegger:Pegger/Rexx")
  137.         (all)
  138.         (infos)
  139.         (dest (tackon pegger_dir "Rexx"))
  140.     )
  141.     )
  142. )
  143.  
  144. (if (BITAND installfiles 1)
  145.     (
  146.     (transcript "Installing PEGGER Tutorial JPEG files.")
  147.  
  148.     (if (NOT (exists (tackon pegger_dir "TutorialFiles") (noreq)))
  149.         (
  150.         (copyfiles
  151.             (source "Pegger:Pegger/TutorialFiles.info")
  152.             (dest pegger_dir))
  153.         (makedir (tackon pegger_dir "TutorialFiles"))
  154.         )
  155.     )
  156.  
  157.     (copyfiles
  158.         (prompt "Installing PEGGER Tutorial JPEG files.")
  159.         (help @copyfiles-help)
  160.         (source "Pegger:Pegger/TutorialFiles")
  161.         (all)
  162.         (infos)
  163.         (dest (tackon pegger_dir "TutorialFiles"))
  164.     )
  165.  
  166.     (if (NOT (exists (tackon pegger_dir "Images") (noreq)))
  167.         (
  168.         (copyfiles
  169.             (source "Pegger:Pegger/Images.info")
  170.             (dest pegger_dir))
  171.         (makedir (tackon pegger_dir "Images"))
  172.         )
  173.     )
  174.  
  175.     (if (NOT (exists (tackon pegger_dir "JPEGs") (noreq)))
  176.         (
  177.         (copyfiles
  178.             (source "Pegger:Pegger/JPEGs.info")
  179.             (dest pegger_dir))
  180.         (makedir (tackon pegger_dir "JPEGs"))
  181.         )
  182.     )
  183.     )
  184. )
  185.  
  186. (transcript "Setting PEGGER ToolTypes")
  187.  
  188. (tooltype
  189.     (dest (tackon pegger_dir "PEGGER"))
  190.     (settooltype "PEGGER_DIR" (cat "\"" pegger_dir "\""))
  191.     (settooltype "SCREEN_TYPE" "NOLACE")
  192.     (settooltype "SCREEN" "WORKBENCH")
  193.     (settooltype "SCREEN_QUIET" "NO")
  194.     (settooltype "SNOOP_WORKBENCH_MENU" "YES")
  195.     (settooltype "SNOOP_WORKBENCH_ICON" "YES")
  196.     (settooltype "SNOOP_POPUP" "NO")
  197.     (settooltype "SNOOP_POPKEY" "alt p")
  198.     (settooltype "SNOOP_DELAY" "0")
  199.     (settooltype "SNOOP_CRIPPLE" "NO")
  200.     (settooltype "CJPEG_WORKBENCH_MENU" "YES")
  201.     (settooltype "CJPEG_WORKBENCH_ICON" "YES")
  202.     (settooltype "CJPEG_POPUP" "NO")
  203.     (settooltype "CJPEG_POPKEY" "alt c")
  204.     (settooltype "CJPEG_PRIORITY" "0")
  205.     (settooltype "CJPEG_SHUTDOWN" "0")
  206.     (settooltype "QUALITY" "85")
  207.     (settooltype "DJPEG_WORKBENCH_MENU" "YES")
  208.     (settooltype "DJPEG_WORKBENCH_ICON" "YES")
  209.     (settooltype "DJPEG_POPUP" "NO")
  210.     (settooltype "DJPEG_POPKEY" "alt d")
  211.     (settooltype "DJPEG_PRIORITY" "0")
  212.     (settooltype "DJPEG_SHUTDOWN" "0")
  213.     (settooltype "SMOOTHING" "OFF")
  214.     (settooltype "DONOTWAIT" "")
  215.     (settooltype "CJPEG_H_SAMPLE" "2")
  216.     (settooltype "CJPEG_V_SAMPLE" "2")
  217.     (settooltype "TEMPORARY_DIR" (cat "\"T:\""))
  218.     (settooltype "BACKUP_TEMP_DIR" (cat "\"" pegger_dir "\""))
  219.     (settooltype "ABOUT_WINDOW" "YES")
  220.     (settooltype "LOGFILE" "OFF")
  221. )
  222.  
  223. (transcript "Installation Completed")
  224.  
  225. (exit "If PEGGER is already installed and you are updating to a new version of PEGGER, "
  226.     "you must reboot your system before using PEGGER again."
  227.     )
  228.